<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8">
<base href="${pageContext.request.contextPath }/">
<title>xxxx</title>

<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="bootstrap/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="bootstrap/css/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="jquery/jquery.min.js"></script>
<script src="jquery/jquery.form.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="bootstrap/js/bootstrap.min.js"></script>

<!-- 引用 jQuery Easyui文件 -->

<link rel="stylesheet" type="text/css" href="easyui/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js"></script>
  
  
<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="2">
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td background="images/topback.gif" width="130"><img src="images/sitelogo.gif" height="88"></td>
    <td background="images/topback.gif" width="500" align="center" valign="middle"><a href="http://www.fans8.com" target="_blank"><img src="images/fans8.gif" width="468" height="60" border="0"></a> 
    </td>
    <td background="images/topback.gif" width="130"> 
    
<table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr> 
          <td valign="middle" align="center"><a href="cart.jsp"><img src="images/button_cart.gif" width="87" height="18" border="0"></a></td>
        </tr>
        <tr> 
          <td valign="middle" align="center"><a href="checkorder_login.jsp"><img src="images/button_ddcx.gif" width="87" height="18" border="0"></a></td>
        </tr>
        <tr> 
          
    <td valign="middle" align="center"><a href="customer_register.jsp"><img src="images/button_regist.gif" width="87" height="18" border="0"></a></td>
        </tr>
      </table>
</td>
  </tr>
</table>
<table width="760" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#000000">
  <tr> 
    <td bgcolor="#FF9900" height="22" valign="middle" align="center"> 
    
<table width="80%" border="0" cellspacing="2" cellpadding="2">
          <tr align="center" valign="middle"> 
            <td><a href="newproduct.jsp" class="white">新品快递</a></td>
            
    <td><a href="commend.jsp" class="white">重点推荐</a></td>
            
    <td><a href="bestsell.jsp" class="white">销售排行</a></td>
            
    <td><a href="bestprice.jsp" class="white">特价商品</a></td>
          </tr>
        </table>
</td>
  </tr>
  <tr> 
    <td bgcolor="#FFCC66" height="22"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>　<a href="index.jsp">首页</a> &gt; 定单确认</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="1" bgcolor="#000000"></td>
    <td align="center" valign="top" width="758"> 
      <p>&nbsp;</p>
      <span class="productName">${user.realname},您好~！</span><br>
      <form name="form1" method="post" action="order/add.action">
        <table width="90%" border="0" cellspacing="2" cellpadding="2">
          <tr bgcolor="#E1E1E1"> 
            <td colspan="3" height="24" class="productName">以下是您所购买的商品</td>
          </tr>
          <tr bgcolor="#999999"> 
            <td colspan="3" height="1"></td>
          </tr>
          <!-- 购物项开始 -->
          <c:forEach items="${buy.itemList }" var="item">
          <tr> 
            <td width="50%"><b>商品编号：</b>${item.id}</td>
            <td colspan="2"><b>商品名称：</b>${item.name}</td>
          </tr>
          <tr> 
            <td width="50%"><b>单　　价：</b>${item.price}元</td>
            <td colspan="2"><b>重　　量：</b>${item.unitWeight}公斤</td>
          </tr>
          <tr> 
            <td width="50%"><b>数　　量：</b>${item.quantity}</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3" height="1" bgcolor="#999999"></td>
          </tr>
          </c:forEach>
          <!-- 购物项结束 -->
          <tr bgcolor="#E1E1E1" valign="middle"> 
            <td colspan="2">您共购买了${buy.totalQuantity}个商品，总重为${buy.totalWeight}公斤，总计费用为：${buy.totalPrice}元。</td>
            <td width="20%" align="center"><a href="cart/list.action"><img src="images/updatecart.gif" width="87" height="24" border="0"></a></td>
          </tr>
        </table>
        <br>
        <table width="90%" border="0" cellspacing="2" cellpadding="2">
          <tr bgcolor="#E1E1E1"> 
            <td colspan="3" height="24" class="productName">请认真填写收货人的详细信息（默认为您的注册信息）</td>
          </tr>
          <tr> 
            <td colspan="3" height="1" bgcolor="#999999"></td>
          </tr>
          <tr> 
            <td colspan="2"><b>收货人姓名： 
              <input type="text" name="realName" value="${user.realname}" class="textbox">
              </b></td>
            <td width="48%"><b>收货人城市： 
              <input type="text" name="city" value="${user.city}" class="textbox">
              </b></td>
          </tr>
          <tr> 
            <td colspan="2"><b>收货人电话： 
              <input type="text" name="phone" value="${user.phone}" class="textbox">
              </b></td>
            <td width="48%"><b>收货人邮编： 
              <input type="text" name="zip" value="${user.zip}" class="textbox">
              </b></td>
          </tr>
          <tr> 
            <td width="13%"><b>收货人地址： </b></td>
            <td valign="top" colspan="2"><b> 
              <textarea name="addres" cols="50" rows="3" class="textbox">${user.address}</textarea>
              </b></td>
          </tr>
          <tr> 
            <td valign="top" colspan="2"><b>付款方式： 
              <select name="payId">
                <!-- 付款方式列表开始 --> 
                <c:forEach items="${paymethodList}" var="pay" varStatus="status">
                <c:if test="${status.index==0}">
                <option selected value="${pay.id}" >${pay.name}</option>                
                </c:if>
                <c:if test="${status.index!=0}">
                <option selected value="${pay.id}" >${pay.name}</option>                
                </c:if>
                </c:forEach>
                <!-- 付款方式列表结束-->
                
              </select>
              </b></td>
            <td width="48%"><b>收货方式： 
              <select name="shippingId">
                <!-- 收货方式列表开始 -->
                <c:forEach items="${shippingList}" var="shipping" varStatus="status">
                 <c:if test="${status.index==0}">
                <option value="${shipping.id}" >${shipping.name}</option>
                </c:if>
                 <c:if test="${status.index!=0}">
                <option value="${shipping.id}" >${shipping.name}</option>
                </c:if>
                </c:forEach>
                <!-- 收货方式列表开始 -->
              </select>
              </b></td>
          </tr>
          <tr> 
            <td colspan="3" height="1" bgcolor="#999999"></td>
          </tr>
          <tr bgcolor="#E1E1E1" align="center" valign="middle"> 
            <td colspan="3" height="25"> 
              <input type="submit" value="提交定单">
            </td>
          </tr>
        </table>
        <input type="hidden" name="opInsert" value="true">
      </form>
    </td>
    <td width="1" bgcolor="#000000"></td>
  </tr>
</table>
<br>

<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td background="images/topback.gif" align="center" height="16"><font color="#FFFFFF">copyright 
      2001 Powered by Peter.HJ</font></td>
  </tr>
</table>
</body>
</html>
